﻿using ImoviesBlazor.Shared.Entities;

namespace ImoviesBlazor.Server.Repository
{
    public interface IMovieVlinkRepository
    {
        /// <summary>
        /// 添加电影播放链接
        /// </summary>
        /// <param name="movie"></param>
        void AddMovieVlink(MovieVlink movieVlink);

        /// <summary>
        /// 批量添加
        /// </summary>
        /// <param name="movieVlinks"></param>
        /// <returns></returns>
        Task BatchAddMovieVlink(IEnumerable<MovieVlink> movieVlinks);

        /// <summary>
        /// 修改电影播放链接
        /// </summary>
        /// <param name="movie"></param>
        void UpdateMovieVlink(MovieVlink movieVlink);

        /// <summary>
        /// 删除电影播放链接
        /// </summary>
        /// <param name="movieVlinkId"></param>
        Task DeleteMovieVlink(uint movieVlinkId);

        /// <summary>
        /// 保存操作
        /// </summary>
        /// <returns></returns>
        Task<bool> SaveAsync();
    }
}
